package com.ruoyi.business.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.DictUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.mapper.SysDictDataMapper;
import com.ruoyi.system.service.ISysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: ygw
 * @Date: 2022/09/28/18:14
 * @Description:
 */
@RestController
@RequestMapping("/pdl/dict/type")
public class PdlDictTypeController {

    @Autowired
    private ISysDictTypeService dictTypeService;

    /**
     * 业务系统 清空缓存
     */
    @Log(title = "清空缓存", businessType = BusinessType.GET)
    @DeleteMapping("/clearCache")
    public AjaxResult clearCache() {
        dictTypeService.clearCache();
        return AjaxResult.success();
    }
}
